SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwlReparticiones
AS
SELECT     dbo.tb_Reparticiones.idReparticion AS ID, dbo.tb_Reparticiones.Reparticion, dbo.tb_Reparticiones.Descripcion, dbo.tb_Reparticiones.EsEscuela, 
                      dbo.tb_Organizaciones.Nombre AS Organizacion
FROM         dbo.tb_Reparticiones INNER JOIN
                      dbo.tb_Organizaciones ON dbo.tb_Reparticiones.Organizacion = dbo.tb_Organizaciones.idOrganizaciones
GO
GRANT SELECT ON  [dbo].[vwlReparticiones] TO [Informatica]
GRANT INSERT ON  [dbo].[vwlReparticiones] TO [Informatica]
GRANT DELETE ON  [dbo].[vwlReparticiones] TO [Informatica]
GRANT UPDATE ON  [dbo].[vwlReparticiones] TO [Informatica]
GRANT SELECT ON  [dbo].[vwlReparticiones] TO [SoloVer]
GO
